<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<style type="text/css">
	.even{
		background-color:gray
	}
</style>
<body>
	<table border=1 center>
		<tr>
			<th>书本ID</th><th>收藏数量</th>
		</tr>
		<c:forEach items="${bookMap}" var="bm" varStatus="s">
			<c:if test="${s.index%2==0 }">
				<tr class="even">
			</c:if>
				<td>${bm.key}</td>
				<td>
					${bm.value}
				</td>
			</tr>
		</c:forEach>
		<tr>
			<td><a href="addCart">返回</a></td>
			<td><a href="pay">结算</a></td>
		</tr>
		
	</table>
</body>
</html>